package com.group9.service;

import com.group9.dto.FruitCartInfo;
import com.group9.pojo.FruitCart;
import com.group9.pojo.FruitInfo;

import java.util.List;

/**
 * Created by Lcouncillor on 2020/5/4.
 */
public interface FruitCartService {
    List<FruitCart> selectCartByCustomerId(Integer customerId);

    FruitCart selectCartByCustomerIdAndFruitId(Integer customerId,Integer fruitId);

    Integer deleteByCartId(Integer cartId);

    Integer updateCart(FruitCart fruitCart);

    Integer insertCartByFruitIdAndAmount(Integer fruitId, Integer customerId, Integer fruitAmount);
}
